import { createApp } from 'vue'
import App from './App.vue'
import router from "@/router"
import ElementPlus from "element-plus";
import 'element-plus/dist/index.css'
import request from "@/utils/request";
import pinia from "@/stores/index"

import XcTableV3 from "xc-table-v3"
import '@/theme/index.scss';
import VueGridLayout from 'vue-grid-layout';
import print from 'vue3-print-nb'
// import 'xc-table-v3/lib/style.css';
// 如果您正在使用CDN引入，请删除下面一行。
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const app = createApp(App)

app.config.globalProperties.$axios = request;
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(router)
    app.use(XcTableV3)
    .use(pinia)
    .use(ElementPlus)
    .use(VueGridLayout)
    .use(print)
    .mount('#app')


